
// 给一个节点（原始或nw节点），即可以自动分析出来 。ys属性 的样式代号。
function NW04_zdy_sj() {
    this.hc = [];

}

NW04_zdy_sj.prototype.cj = function (jd) {
    let gt = new NW04_zdy_sj_gt(jd);
    if (gt.sj) {
        this.hc.push(gt)
        return gt;
    }
    return null;
}


// NW04_zdy_sj.prototype.sc = function (jd) {
//     for (let i = 0; i < hc.length; i++) {
//         if (hc[i].jd == jd) {
//             this.hc[i].sc();
//             this.hc.splice(i, 1);//从数组删除   
//         }
//     }
// }

NW04_zdy_sj.prototype.sc = function (jd) {
    let _NWerziM = jd.children;
    for (let i = 0; i < this.hc.length; i++) {
        if (this.hc[i].jd == jd) {
            this.hc[i].sc();
            this.hc.splice(i, 1);//从数组删除   
        }
    }
    for (let i = 0; i < _NWerziM.length; i++) {
        switch (_NWerziM[i].nodeName) {
            case 'SCRIPT':
            case 'STYLE':
                continue;
        }
        this.sc(_NWerziM[i]);
    }
}

NW04_zdy_sj.prototype.zx = function (jd, sjDH, e) {
    let sj = e;
    let s = e;
    let djjd = e.target;
    let jd2 = e.target;
    for (let i = 0; i < this.hc.length; i++) {
        if (this.hc[i].jd == jd && this.hc[i][sjDH]) {
            eval(this.hc[i][sjDH])
        }
    }
}


function NW04_zdy_sj_sb_ax(e) {
    nw.yq.zdy.sj.zx(this, 'sb_ax', e)
}
function NW04_zdy_sj_sb_sk(e) {
    nw.yq.zdy.sj.zx(this, 'sb_sk', e)
}
function NW04_zdy_sj_sb_dj(e) {
    nw.yq.zdy.sj.zx(this, 'sb_dj', e)
}
function NW04_zdy_sb_sb_sj(e) {
    nw.yq.zdy.sj.zx(this, 'sb_sj', e)
}
function NW04_zdy_sj_sb_yj(e) {
    nw.yq.zdy.sj.zx(this, 'sb_yj', e)
}
function NW04_zdy_sj_sb_jr(e) {
    nw.yq.zdy.sj.zx(this, 'sb_jr', e)
}
function NW04_zdy_sj_sb_lk(e) {
    nw.yq.zdy.sj.zx(this, 'sb_lk', e)
}

function NW04_zdy_sj_jp_ax(e) {
    nw.yq.zdy.sj.zx(this, 'jp_ax', e)
}
function NW04_zdy_sj_jp_az(e) {
    nw.yq.zdy.sj.zx(this, 'jp_az', e)
}
function NW04_zdy_sj_jp_sk(e) {
    nw.yq.zdy.sj.zx(this, 'jp_sk', e)
}
function NW04_zdy_sj_z_gb(e) {
    nw.yq.zdy.sj.zx(this, 'z_gb', e)
}

function NW04_zdy_sj_z_sr(e) {
    nw.yq.zdy.sj.zx(this, 'z_sr', e)
}
function NW04_zdy_sj_gdt_gd(e) {
    nw.yq.zdy.sj.zx(this, 'gdt_gd', e)
}
